Skip to content

ci: run npm run check in the Pages workflow - #26

Merged
DeepDiver1975 merged 1 commit into
mainfrom
ci/astro-check
Nov 8, 2026
Merged

DeepDiver1975 merged 1 commit into
mainfrom
ci/astro-check

Conversation

@DeepDiver1975

@DeepDiver1975 DeepDiver1975 commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a Type check step (npm run check) to the Pages workflow, so astro check runs on every pull request, push and nightly build. It's now possible because #24 added @astrojs/check and typescript. When the check first ran, it found three type errors from #22; this step keeps errors like that from reaching main unnoticed.

The step runs after Build because the pages import assets that the build's sync step copies in from the lagebuch and helfer repos. A failing check also stops the deploy, since the upload step comes after it.

Test plan

  • npm run check → 0 errors locally on main
  • The new step passes on this PR

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • The Pages publishing workflow now runs project checks after creating a build, adding a validation step before publishing. This update affects release automation only; it does not change application features or user-facing behavior.

astro check now works after a clean install (#24), so run it on every
pull request and push. It caught three type errors from #22 the first
time it ran; this keeps such errors from reaching main unnoticed.

It runs after the build because the pages import assets that the
build's sync step copies in from the app repos.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Thomas Müller <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Pages build workflow now runs npm run check after npm run build.

Changes: Pages workflow validation

Layer / File(s) Summary
Run type check after build
.github/workflows/pages.yml
The workflow runs npm run check after the build step.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Possibly related PRs

Merge Risk: Minimal · up to 6737d

Pages builds now check types before deployment. No merge-blocking issue was established.

Pre-merge checks: Passed 5

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "ci: run npm run check in the Pages workflow" matches the only file change, which adds a step running npm run check to the Pages workflow. It names the primary change and the workflow it a…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "ci: run npm run check in the Pages workflow" matches the only file change, which adds a step running npm run check to the Pages workflow. It names the primary change and the workflow it affects. The title is specific and concise, and it uses a conventional commit prefix.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5f2ea2ab-7026-4965-8b25-efd923358dc7
Commits

Reviewing files that changed from the base of the PR and between 5063d52 and 6737d14.

Files selected for processing: 1

  • .github/workflows/pages.yml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.

@DeepDiver1975
DeepDiver1975 merged commit f5d347d into main Nov 8, 2026
4 checks passed
@DeepDiver1975
DeepDiver1975 deleted the ci/astro-check branch November 8, 2026 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant